package 数据结构.章节09._146_单链表;

/**
 * @author 挚爱之夕
 * @date 2021/10/5 - 10 - 05 - 17:11
 * @Description: 数据结构.章节09._146_单链表
 * @Version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList<String> linkedList = new SingleLinkedList<String>();
        /*增*/
        linkedList.add("1");
        linkedList.add("2");
        linkedList.add("3");
        System.out.println(linkedList);
        /*删*/
        linkedList.delete(0);
        System.out.println(linkedList);
        /*改*/
        linkedList.modify(0,"00");
        System.out.println(linkedList);
        /*查*/
        System.out.println(linkedList.find(0));
        System.out.println(linkedList.contains("1"));
        

    }
}
